package com.whp.listener_event;

import org.springframework.context.ApplicationEvent;


/**
 * @author wanghp
 * @version 1.0
 * @date 2020/8/20 17:35
 */

public class TestEvent extends ApplicationEvent {

	private static final long serialVersionUID = 7099057708183571937L;
	public String msg;


	public TestEvent(Object source) {
		super(source);
	}

	public TestEvent(Object source, String msg) {
		super(source);
		this.msg = msg;
	}

	public void print() {
		System.out.println(msg);
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
